﻿@{
    Bundle("jquery_timepicker");
    Bundle("jquery_validate");
}
           
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('@ID("#form")').validate({
            rules: {
                orderID: {
                    required: true,
                    digits: true
                },
                total: {
                    required: true
                },
                paidAmount: {
                    required: true
                },
                refundAmount: {
                    required: true
                }
            }
        });
        jQuery('@ID("#txt_issued")').datetimepicker();
    });
</script>
<form id="@ID("form")" action="@Url.Action(Loc.Act("Place").Ctrl("Invoice"))" method="post">
    <table>
        <tr>
            <td>
                <label>@T(Res.Name("IssuedOn"))</label>
            </td>
            <td>
                <input id="@ID("txt_issued")" type="text" name="issuedOn" value="@Svc.DateTime(DateTime.UtcNow)" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Order"))</label>
            </td>
            <td>
                <input type="text" name="orderID"/>
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    @T(Res.Name("Total"), JDM.String(Svc.Localization.Currency.Code))
                </label>
            </td>
            <td>
                <input type="text" name="total" value="@Svc.Price(Decimal.Zero)" />
            </td>
        </tr>
    </table>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>
